<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%>
<%@ page import="net.sf.rose.business.service.MenuSevice" %>
<%@ page import="net.sf.rose.business.bean.control.MenuBean" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>简单实用国产jQuery UI框架 - DWZ富客户端框架(J-UI.com)</title>

<link href="${ctx}/dwz/themes/default/style.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="${ctx}/dwz/themes/css/core.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="${ctx}/dwz/themes/css/print.css" rel="stylesheet" type="text/css" media="print"/>
<link href="${ctx}/dwz/uploadify/css/uploadify.css" rel="stylesheet" type="text/css" media="screen"/>

<!--自动完成-->
 <link rel="stylesheet" type="text/css" href="${ctx}/autocomplete/jquery.autocomplete.css" />
 
<!--[if IE]>
<link href="${ctx}/dwz/themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>
<![endif]-->

<!--[if lte IE 9]>
<script src="${ctx}/dwz/js/speedup.js" type="text/javascript"></script>
<![endif]-->

<script src="${ctx}/dwz/js/json2.js" type="text/javascript"></script>

<script src="${ctx}/dwz/js/jquery-1.7.2.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/jquery.cookie.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/jquery.validate.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/jquery.bgiframe.js" type="text/javascript"></script>
<script src="${ctx}/dwz/xheditor/xheditor-1.1.14-zh-cn.min.js" type="text/javascript"></script>
<script src="${ctx}/dwz/uploadify/scripts/jquery.uploadify.js" type="text/javascript"></script>

<!-- svg图表  supports Firefox 3.0+, Safari 3.0+, Chrome 5.0+, Opera 9.5+ and Internet Explorer 6.0+ -->
<script type="text/javascript" src="${ctx}/dwz/chart/raphael.js"></script>
<script type="text/javascript" src="${ctx}/dwz/chart/g.raphael.js"></script>
<script type="text/javascript" src="${ctx}/dwz/chart/g.bar.js"></script>
<script type="text/javascript" src="${ctx}/dwz/chart/g.line.js"></script>
<script type="text/javascript" src="${ctx}/dwz/chart/g.pie.js"></script>
<script type="text/javascript" src="${ctx}/dwz/chart/g.dot.js"></script>

<script src="${ctx}/dwz/js/dwz.core.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.util.date.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.validate.method.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.regional.zh.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.barDrag.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.drag.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.tree.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.accordion.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.ui.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.theme.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.switchEnv.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.alertMsg.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.contextmenu.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.navTab.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.tab.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.resize.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.dialog.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.dialogDrag.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.sortDrag.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.cssTable.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.stable.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.taskBar.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.ajax.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.pagination.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.database.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.datepicker.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.effects.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.panel.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.checkbox.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.history.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.combox.js" type="text/javascript"></script>
<script src="${ctx}/dwz/js/dwz.print.js" type="text/javascript"></script>
<!--
<script src="${ctx}/dwz/bin/dwz.min.js" type="text/javascript"></script>
-->
<script src="${ctx}/dwz/js/dwz.regional.zh.js" type="text/javascript"></script>

<!--自动完成-->
 <script type='text/javascript' src='${ctx}/autocomplete/jquery.autocomplete.js'></script>
 
<script type="text/javascript">
$(function(){
	DWZ.init("${ctx}/dwz/dwz.frag.xml", {
		loginUrl:"login_dialog.html", loginTitle:"登录",	// 弹出登录对话框
//		loginUrl:"login.html",	// 跳到登录页面
		statusCode:{ok:200, error:300, timeout:301}, //【可选】
		pageInfo:{pageNum:"currentPage", numPerPage:"pageSize", orderField:"orderField", orderDirection:"orderDirection"}, //【可选】
		debug:false,	// 调试模式 【true|false】
		callback:function(){
			initEnv();
			$("#themeList").theme({themeBase:"themes"}); // themeBase 相对于index页面的主题base路径
		}
	});
});

</script>
</head>

<body scroll="no">
	<div id="layout">
		<div id="header">
			<div class="headerNav">
				<a class="logo" href="http://j-ui.com">标志</a>
				<ul class="themeList" id="themeList">
					<li theme="default"><div class="selected">蓝色</div></li>
					<li theme="green"><div>绿色</div></li>
					<!--<li theme="red"><div>红色</div></li>-->
					<li theme="purple"><div>紫色</div></li>
					<li theme="silver"><div>银色</div></li>
					<li theme="azure"><div>天蓝</div></li>
				</ul>
			</div>
			<!-- navMenu -->
		</div>

		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse"><div></div></div>
				</div>
			</div>
			<div id="sidebar">
				<div class="toggleCollapse"><h2>欢迎你！<c:out value="${user.userName}"  /></h2><div>收缩</div></div>
				<div class="accordion" fillSpace="sidebar">
					<div class="accordionHeader">
						<h2><span>Folder</span>菜单</h2>
					</div>
					<div class="accordionContent">
						<ul class="tree treeFolder">
							<%
							MenuBean root = MenuSevice.getService().getMenuBean();
							for(MenuBean menu : root.getChildMenus()){
							%>
							<li>
							<%if(menu.getChildMenus().size()==0){%>
								<a href="../${ctx}/common/menu.html?name=<%=menu.getId()%>" target="navTab" rel="menu<%=menu.getId()%>"><%=menu.getText()%></a>
							<%} else {%>
								<a><%=menu.getText()%></a>
								<ul>
									<%for(MenuBean sm : menu.getChildMenus()){%>
									<li>
									<%if(sm.getChildMenus().size()>0){%>
										<a><%=sm.getText()%></a>
										<ul class="tree treeFolder">
										<%for(MenuBean tm : sm.getChildMenus()){%>
											<li>
												<a href="../${ctx}/common/menu.html?name=<%=tm.getId()%>" target="navTab" rel="menu<%=tm.getId()%>"><%=tm.getText()%></a>
											</li>
										<%}%>
										</ul>
									<%} else {%>
										<a href="../${ctx}/common/menu.html?name=<%=sm.getId()%>" target="navTab" rel="menu<%=sm.getId()%>"><%=sm.getText()%></a>
									</li>
									<%}%>
									<%}%>
								</ul>
							<%}%>
							</li>
							<%}%>
							<li><a>管理员菜单</a>
								<ul>
									<li><a href="../${ctx}/base/user/list.html" target="navTab" rel="bs_user_list">用户管理</a></li>
									<li><a href="../${ctx}/base/group/list.html" target="navTab" rel="bs_group_list">部门管理</a></li>
									<li><a href="../${ctx}/common/view.html?jsp=base/role/list" target="navTab" rel="bs_role_list">角色管理</a></li>
								</ul>
							</li>
							<li><a>用户自定义</a>
								<ul>
									<li><a href="../${ctx}/define/menu/list.html" target="navTab" rel="base_define_menu_list">菜单管理</a></li>
									<li><a href="../${ctx}/define/view/list.html" target="navTab" rel="base_define_view_list">视图管理</a></li>
									<li><a href="../${ctx}/define/action/list.html" target="navTab" rel="base_define_action_list">操作管理</a></li>
									<li><a href="../${ctx}/define/actionunit/list.html" target="navTab" rel="base_define_action_unit_list">操作单元管理</a></li>
									<li><a href="../${ctx}/define/database/list.html" target="navTab" rel="base_define_database_list" >数据库管理</a></li>
									<!-- 
									<li><a href="../${ctx}/common/view.html?jsp=define/database/datasource" target="dialog" rel="base_define_datasource" width="540" height="350">数据库连接</a></li>
									 -->
									<li><a href="../${ctx}/define/dbmeta/list.html" target="navTab" rel="base_define_dbmeta_list">数据库元数据管理</a></li>
								</ul>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
		<div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
						<li tabid="main" class="main"></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<div class="navTab-panel tabsPageContent layoutBox">
					<div class="page unitBox">
						<div style="width:230px;position: absolute;top:60px;right:0">
							<iframe width="100%" height="430" class="share_self"  frameborder="0" scrolling="no" ></iframe>
						</div>
					</div>
					
				</div>
			</div>
		</div>

	</div>

	<div id="footer">Copyright &copy; 2013 <a href="demo_page2.html" target="dialog">南通电子口岸</a></div>

<!-- 注意此处js代码用于google站点统计，非DWZ代码，请删除 -->
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-16716654-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? ' https://ssl' : ' http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>

</body>
</html>